#ifndef EDITOREXITDIALOG_H
#define EDITOREXITDIALOG_H

#include <QDialog>
#include <QDialogButtonBox>
#include <QVBoxLayout>
#include <QLabel>

class EditorExitDialog : public QDialog
{
    Q_OBJECT
public:

    enum ExitCode {
        Cancel = 0x01,
        Save = 0x02,
        Discard = 0x04
    };

    EditorExitDialog(QString tabName, QWidget *parent = 0);
    ~EditorExitDialog();

    ExitCode exec();

private:
    QDialogButtonBox * exitDialogButtons_;
    QVBoxLayout * exitDialogLayout_;
    QLabel * exitDialogLabel_;
    
signals:
    
private slots:
    void onClicked(QAbstractButton *button);
};

#endif // EDITOREXITDIALOG_H
